﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace KQ.DCMMP.Common
{
    public static class DefaultTableTypes
    {
        public const string Org = "ORGANIZATION";
        public const string Base = "BASE";
        public const string Block = "BLOCK";
        public const string Building = "BUILDING";
        public const string Apartment = "APARTMENT";

        public static bool IsOrg(string extensionType)
        {
            return string.Equals(extensionType, Org, StringComparison.OrdinalIgnoreCase);
        }
        public static bool IsBase(string extensionType)
        {
            return string.Equals(extensionType, Base, StringComparison.OrdinalIgnoreCase);
        }
        public static bool IsBlock(string extensionType)
        {
            return string.Equals(extensionType, Block, StringComparison.OrdinalIgnoreCase);
        }
        public static bool IsBuilding(string extensionType)
        {
            return string.Equals(extensionType, Building, StringComparison.OrdinalIgnoreCase);
        }
        public static bool IsApartment(string extensionType)
        {
            return string.Equals(extensionType, Apartment, StringComparison.OrdinalIgnoreCase);
        }
    }
}
